@import "~assets/styles/_bootstrap";

$border-color: #e3e3e3;


.dialog {
  &:before {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    content: ' ';
    background: rgba(0, 0, 0, .3);
    z-index: 1000;
  }

  .content {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999999;
    display: block;
    float: none;
    margin: 0;
    padding:  0;
    min-height: 0;
    max-height: auto;
    min-width: 0;
    max-width: 100%;
    width: 65%;
    height: auto;
    text-align: center;
    font-size: rem(13px);
    border: rem(1px) solid $border-color;
    border-radius: rem(6px);
    background-color: #fff;
    box-shadow: none;
    user-select: none;
    transform: translate(-50%, -50%);
    // opacity: 0;

    &.fade-enter-active, &.fade-leave-active {
      transition: all 0.3s linear;
    }
    &.fade-enter, &.fade-leave-active {
      opacity: 0;
    }

    &.active {
      // opacity: 1;
    }

    .head {
      padding: rem(15px) 0;
      color: #333;
      font-size: rem(14px);
      border-bottom: 1px solid $border-color;

      p {
        white-space: pre-wrap;
      }
    }

    .dialog-body {
      position: relative;
      padding: rem(3px) 0;
      width: 100%;
      height: 100%;

      > button, > p {
        display: inline-block;
        padding: rem(10px);
        width: 100%;
        font-size: rem(13px);
        color: #666;
        border: none;
        background: none;

        &.item {
          float: left;
          width: 50%;
        }

        &:last-child {
          &.item {
            border-left: 1px solid $border-color;
          }
        }
      }

      &:after {
        display: block;
        content: ' ';
        clear: both;
      }
    }
  }
}

.dialog_simple {

  h3 {
    display: none;
  }

  .dialog-body .item:last-child {
    color: $mainCol;
  }
}